import Vue from 'vue'
import Router from 'vue-router'

const index = () => import(/* webpackChunkName:'home'*/ '@/pages/index/index'); //首页
const live = () => import(/* webpackChunkName:'home'*/ '@/pages/live/index'); //首页
const patrol = () => import(/* webpackChunkName:'patrol'*/ '@/pages/patrol/index'); //首页

Vue.use(Router)

export default new Router({
  mode: 'history',
  base:'',
  routes: [
    {path: '/record',name: 'index',component: index,meta:  {title: 'index',requireAuth: true,keepAlive:true}},
    {path: '/live',name: 'live',component: live,meta:  {title: 'live',requireAuth: true,keepAlive:true}},
    {path: '/patrol',name: 'patrol',component: patrol,meta:  {title: 'patrol',requireAuth: true,keepAlive:true}}
  ],
})
